x86/domctl: improve XEN_DOMCTL_hypercall_init error handling
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 13 Mar 2015 15:31:27 +0000 (16:31 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 13 Mar 2015 15:31:27 +0000 (16:31 +0100)
commitfd7124d03c2d06715d2ba54eb443285c51cef9e0
tree68c64ecb33799e3c8811d4c88ce7e9beb29f9471
parent9832f5e8e3575f8affceb2751f7422704bf7b446
x86/domctl: improve XEN_DOMCTL_hypercall_init error handling

EACCES cannot be distinguished against an incorrect DOMCTL_INTERFACE_VERSION,
and will cause an incorrect "need to rebuild the user-space tool set?" message
from libxc.

On the libxc side, put the useful piece of information in the error message,
rathe than the -1 from do_domctl().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_dom_boot.c
xen/arch/x86/domctl.c